package com.train.pojo;

import java.util.Objects;

public class MovieType {
    private String name;
    private String country;
    private int count;
    private String arr;


    public MovieType() {
    }

    public MovieType(String name, String country, int count, String arr) {
        this.name = name;
        this.country = country;
        this.count = count;
        this.arr = arr;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getArr() {
        return arr;
    }

    public void setArr(String arr) {
        this.arr = arr;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MovieType movieType = (MovieType) o;
        return count == movieType.count && Objects.equals(name, movieType.name) && Objects.equals(country, movieType.country) && Objects.equals(arr, movieType.arr);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, country, count, arr);
    }

    @Override
    public String toString() {
        return "MovieType{" +
                "name='" + name + '\'' +
                ", country='" + country + '\'' +
                ", count=" + count +
                ", arr='" + arr + '\'' +
                '}';
    }
}
